package ca.llsutherland.squash.domain.helper;

import ca.llsutherland.squash.domain.Clock;
import ca.llsutherland.squash.domain.Role;

public class RolesHelper {

    public static Role createNewRole(String name, Clock dateCreated, Clock dateUpdated, Long id) {
        return new Role(name, dateCreated, dateUpdated, id);
    }

    public static void assertValidRole(Role role) {
        DomainObjectHelper.assertValidId(role.getId());
        NamedDomainObjectHelper.assertValidName(role.getName());
        
    }

}
